home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
mskrmsrc.zip
/
MSNLIB.H
< prev
next >
Wrap
C/C++ Source or Header
|
1991-10-24
|
2KB
|
80 lines
/* File MSNLIB.H
* Kermit include file for TCP C modules
*
* Copyright (C) 1991, Trustees of Columbia University in the
* City of New York. Permission is granted to any individual or
* institution to use, copy, or redistribute this software as long as
* it is not sold for profit and this copyright notice is retained.
*
* The C code is designed for the small memory model of Microsoft C versions
* 5.1 and 6.00A, with structures packed on one byte boundaries. No other
* options are expected.
*
* Last edit:
* 6 Sept 1991
*/
#ifndef NULL
#define NULL 0
#endif
/* Function prototypes */
#ifndef byte
typedef unsigned char byte;
#endif /* byte */
#ifndef word
typedef unsigned int word;
#endif /* word */
#ifndef longword
typedef unsigned long longword;
#endif /* longword */
void outch( byte ); /* print character to stdio */
void outs( byte * ); /* print an ASCIIZ string to stdio */
void outsn( byte *, int ); /* print a string with len max n */
void outhex( byte );
void outhexes( void *, int );
void ntoa(byte *, unsigned long);
unsigned long realclock( void );
unsigned long set_timeout( unsigned int );
unsigned long set_ttimeout( unsigned int );
int chk_timeout( unsigned long );
unsigned long intel( unsigned long );
unsigned intel16( unsigned );
unsigned int checksum( void *ptr, int len ); /* IP checksum */
int ourmod(int, int);
int ourdiv(int, int);
long ourlmod(long, int);
long ourldiv(long, int);
/* Library function replacements */
int atoi(byte *);
byte * ltoa(long, byte *, int);
byte * itoa(int, byte *, int);
int isdigit(const byte);
byte * strchr(byte *, const byte);
byte * strcat(byte *, byte *);
byte * strncat(byte *, byte *, int);
byte * strcpy(byte *, byte *);
byte * strncpy(byte *, byte *, int);
int strlen(byte *);
int strcmp(byte *, byte *);
int stricmp(byte *, byte *);
int strncmp(byte *, byte *, int);
void * bcopy(void *, void *, int);
void * memset(void *, byte, int);
void * pkt_received(void);
int pkt_eth_init(void);
int pkt_init(void);
int pkt_send(byte *, int);
int pkt_release(void);
void pkt_buf_release(byte *);
void pkt_buf_wipe(void);
void enable(void);
void disable (void);